package com.bw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.dao.ResourceCopyMapper;
import com.bw.entity.ResourceCopy;
import com.bw.service.ResourceCopyService;

@Service(value = "resourceCopyService")
public class ResourceCopyServiceImpl implements ResourceCopyService {

    @Autowired
    private ResourceCopyMapper<ResourceCopy>resourceCopyMapper;
    
    @Override
    public Integer insertSelective(ResourceCopy resourceCopy) throws Exception {
           return this.resourceCopyMapper.insertSelective(resourceCopy);
        }

    @Override
    public Integer insertBatch(List<ResourceCopy> resourceCopy) throws Exception {
           return this.resourceCopyMapper.insertBatch(resourceCopy) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.resourceCopyMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.resourceCopyMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ResourceCopy resourceCopy) {
           return this.resourceCopyMapper.updateByPrimaryKeySelective(resourceCopy);
    }

    @Override
    public ResourceCopy findById(Object id) {
           return (ResourceCopy) this.resourceCopyMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ResourceCopy> selectByCondition(ResourceCopy resourceCopy) {
           return (List<ResourceCopy>) this.resourceCopyMapper.selectByCondition(resourceCopy);
    }

    @Override
    public Integer selectCountByCondition(ResourceCopy resourceCopy) {
           return  this.resourceCopyMapper.selectCountByCondition(resourceCopy);
    }

}
